home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 2004 #9
/
Amiga Plus CD - 2004 - No. 09.iso
/
amigaplus
/
tools
/
amigaos4_only
/
ifxlite
/
imagefx3
/
rexx
/
jpeg.ifx
< prev
next >
Wrap
Text File
|
2004-08-03
|
760b
|
46 lines
/*
* $VER: JPEG 1.00.00 (24.9.92)
*
* Arexx program for the ImageFX image processing system.
* Written by Thomas Krehbiel
*
* Convert a series of 24-bit images to JPEG files.
*
*/
OPTIONS RESULTS
RequestFile '"Input Basename..."'
IF rc ~= 0 THEN EXIT
input = result
RequestFile '"Output Basename..."'
IF rc ~= 0 THEN EXIT
output = result
RequestNumber '"Compression Quality..."' 25 100 75
IF rc ~= 0 THEN EXIT
quality = result
DO i = 1 TO 25
num = RIGHT(i,3,'0')
Message 'Frame' num
LoadBuffer input||num
IF rc ~= 0 THEN LEAVE
SaveBufferAs JPEG output||num quality
END
/*
* Optionally archive the results and delete.
*
* ADDRESS COMMAND 'lha a ram:JP' output||'#?'
* ADDRESS COMMAND 'c:delete' output||'#?'
*
*/
EXIT